package com.xique.park.controller.web;

import com.xique.common.core.web.domain.AjaxResult;
import com.xique.common.security.annotation.PreAuthorize;
import com.xique.park.bean.request.web.ipc.ParkIpcListRequest;
import com.xique.park.service.biz.service.IParkIpcBizService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 车场相机controller
 *
 * @author xique
 */
@RestController
@RequestMapping("/web/ipc")
public class WebParkIpcController {

    @Autowired
    private IParkIpcBizService parkIpcBizService;

    /**
     * 查询相机列表
     */
    @PostMapping("/list")
    @PreAuthorize(hasPermi = "park:ipc:list")
    public AjaxResult parkIpcList(@Validated @RequestBody ParkIpcListRequest request) {
        return parkIpcBizService.getParkIpcList(request);
    }

}
